package com.iflytek.universitymanagement.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("study_habit")
@ApiModel(value="StudyHabit对象", description="")
public class StudyHabit extends Account implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "habit_id", type = IdType.AUTO)
    private int habitId;
    private Integer studentId;
    private String habitType;
    private String habitDescription;
    // 添加学生姓名字段
    @TableField(exist = false)
    private String studentName;
}
